package cserver.hsk.la.controler;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;

public class MainStart {

	public static void main(String[] args) throws Exception
	{
		Server server=new Server(3333);
		ServletContextHandler context=new ServletContextHandler(ServletContextHandler.SESSIONS);
		context.addServlet(new ServletHolder(new MsgServlet()), "/msg");
		server.setHandler(context);
		server.start();
		
		System.in.read();
		server.stop();

	}
}
